{"version":3,"file":"masked_input.min.js","sources":["masked_input.js"],"names":["BX","MaskedInput","defaultDefinitions","cypher","char","rule","hexrgb","lang_en","params","this","mask","placeholder","substring","definitions","prepareDefinitions","stopChangeEvent","initInput","prototype","input","tagName","MaskedInputElement","node","MaskedTextElement","dataInput","isDataInputClean","isHoldOverInputValueInit","enableCheckingValue","onDataInputChange","onDataInputInitValue","addCustomEvent","proxy","onInputChange","onInputPaste","onInputDelete","bind","getFirstEmptyPosition","setTimeout","moveCaret","test","val","getMaskedPlaceholder","dataInputVal","value","type","isFunction","apply","isString","length","setValue","inputVal","getValueClean","getValue","checkValue","setMask","setChangeEventFiring","getMask","fireChangeEvent","lastCaretPosition","getSelectionStart","j","i","isMaskCharReplaceable","replaceChar","charAt","testChar","returnValue","directionLeft","deleteSelection","pos","shift","pastedData","setCharOnCaret","setCaretPosition","findClosestAllowPosition","browser","IsAndroid","DetectAndroidVersion","_this","start","target","buffer","push","reverse","pop","posStart","posEnd","getSelectionEnd","onCustomEvent","isNaN","valTml","result","forEach","definition","isPlainObject","def","regexp","RegExp","string","r","maskChar","isSuccess","func","skipTextInputEvent","onChange","onAndroidInput","e","kc","which","keyCode","key","PreventDefault","data","toUpperCase","charCodeAt","eventObject","eReal","isCatch","ctrlKey","altKey","metaKey","IsIOS","clipboardData","window","getData","String","fromCharCode","setSelectionRange","selectionStart","createTextRange","range","duplicate","moveEnd","text","lastIndexOf","selectionEnd","moveStart","innerText"],"mappings":"CAAC,WAEA,GAAIA,GAAGC,YACN,MAED,IAAIC,IACHC,QACCC,OAAQ,IACRC,KAAQ,SAETC,QACCF,OAAQ,IACRC,KAAQ,eAETE,SACCH,OAAQ,IACRC,KAAQ,YAQVL,IAAGC,YAAc,SAAUO,GAE1BC,KAAKC,KAAOF,EAAOE,MAAQ,EAC3BD,MAAKE,aAAeH,EAAOG,aAAe,KAAKC,UAAU,EAAG,EAC5DH,MAAKI,YAAcJ,KAAKK,mBAAmBN,EAAOK,cAAgB,SAAU,WAC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